﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000D1 RID: 209
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AvatarPathChangedNotify : IMessage<AvatarPathChangedNotify>, IMessage, IEquatable<AvatarPathChangedNotify>, IDeepCloneable<AvatarPathChangedNotify>, IBufferMessage
	{
		// Token: 0x170002D2 RID: 722
		// (get) Token: 0x060009A3 RID: 2467 RVA: 0x0001CEAF File Offset: 0x0001B0AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AvatarPathChangedNotify> Parser
		{
			get
			{
				return AvatarPathChangedNotify._parser;
			}
		}

		// Token: 0x170002D3 RID: 723
		// (get) Token: 0x060009A4 RID: 2468 RVA: 0x0001CEB6 File Offset: 0x0001B0B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AvatarPathChangedNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170002D4 RID: 724
		// (get) Token: 0x060009A5 RID: 2469 RVA: 0x0001CEC8 File Offset: 0x0001B0C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AvatarPathChangedNotify.Descriptor;
			}
		}

		// Token: 0x060009A6 RID: 2470 RVA: 0x0001CECF File Offset: 0x0001B0CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarPathChangedNotify()
		{
		}

		// Token: 0x060009A7 RID: 2471 RVA: 0x0001CED7 File Offset: 0x0001B0D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarPathChangedNotify(AvatarPathChangedNotify other) : this()
		{
			this.curMultiPathAvatarType_ = other.curMultiPathAvatarType_;
			this.baseAvatarId_ = other.baseAvatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060009A8 RID: 2472 RVA: 0x0001CF08 File Offset: 0x0001B108
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarPathChangedNotify Clone()
		{
			return new AvatarPathChangedNotify(this);
		}

		// Token: 0x170002D5 RID: 725
		// (get) Token: 0x060009A9 RID: 2473 RVA: 0x0001CF10 File Offset: 0x0001B110
		// (set) Token: 0x060009AA RID: 2474 RVA: 0x0001CF18 File Offset: 0x0001B118
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MultiPathAvatarType CurMultiPathAvatarType
		{
			get
			{
				return this.curMultiPathAvatarType_;
			}
			set
			{
				this.curMultiPathAvatarType_ = value;
			}
		}

		// Token: 0x170002D6 RID: 726
		// (get) Token: 0x060009AB RID: 2475 RVA: 0x0001CF21 File Offset: 0x0001B121
		// (set) Token: 0x060009AC RID: 2476 RVA: 0x0001CF29 File Offset: 0x0001B129
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BaseAvatarId
		{
			get
			{
				return this.baseAvatarId_;
			}
			set
			{
				this.baseAvatarId_ = value;
			}
		}

		// Token: 0x060009AD RID: 2477 RVA: 0x0001CF32 File Offset: 0x0001B132
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AvatarPathChangedNotify);
		}

		// Token: 0x060009AE RID: 2478 RVA: 0x0001CF40 File Offset: 0x0001B140
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AvatarPathChangedNotify other)
		{
			return other != null && (other == this || (this.CurMultiPathAvatarType == other.CurMultiPathAvatarType && this.BaseAvatarId == other.BaseAvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060009AF RID: 2479 RVA: 0x0001CF80 File Offset: 0x0001B180
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CurMultiPathAvatarType != MultiPathAvatarType.None)
			{
				num ^= this.CurMultiPathAvatarType.GetHashCode();
			}
			if (this.BaseAvatarId != 0U)
			{
				num ^= this.BaseAvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060009B0 RID: 2480 RVA: 0x0001CFDE File Offset: 0x0001B1DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060009B1 RID: 2481 RVA: 0x0001CFE6 File Offset: 0x0001B1E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060009B2 RID: 2482 RVA: 0x0001CFF0 File Offset: 0x0001B1F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BaseAvatarId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.BaseAvatarId);
			}
			if (this.CurMultiPathAvatarType != MultiPathAvatarType.None)
			{
				output.WriteRawTag(96);
				output.WriteEnum((int)this.CurMultiPathAvatarType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060009B3 RID: 2483 RVA: 0x0001D04C File Offset: 0x0001B24C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CurMultiPathAvatarType != MultiPathAvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.CurMultiPathAvatarType);
			}
			if (this.BaseAvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BaseAvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060009B4 RID: 2484 RVA: 0x0001D0A4 File Offset: 0x0001B2A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AvatarPathChangedNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CurMultiPathAvatarType != MultiPathAvatarType.None)
			{
				this.CurMultiPathAvatarType = other.CurMultiPathAvatarType;
			}
			if (other.BaseAvatarId != 0U)
			{
				this.BaseAvatarId = other.BaseAvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060009B5 RID: 2485 RVA: 0x0001D0F4 File Offset: 0x0001B2F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060009B6 RID: 2486 RVA: 0x0001D100 File Offset: 0x0001B300
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.CurMultiPathAvatarType = (MultiPathAvatarType)input.ReadEnum();
					}
				}
				else
				{
					this.BaseAvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040003E4 RID: 996
		private static readonly MessageParser<AvatarPathChangedNotify> _parser = new MessageParser<AvatarPathChangedNotify>(() => new AvatarPathChangedNotify());

		// Token: 0x040003E5 RID: 997
		private UnknownFieldSet _unknownFields;

		// Token: 0x040003E6 RID: 998
		public const int CurMultiPathAvatarTypeFieldNumber = 12;

		// Token: 0x040003E7 RID: 999
		private MultiPathAvatarType curMultiPathAvatarType_;

		// Token: 0x040003E8 RID: 1000
		public const int BaseAvatarIdFieldNumber = 5;

		// Token: 0x040003E9 RID: 1001
		private uint baseAvatarId_;
	}
}
